package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 用户角色表
 */
@Getter
@Setter
@TableName(value = "sys_user_role")
public class UserRole extends BaseEntity {

    /**
     * 租赁公司ID
     */
    private Long companyId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户登录名
     */
    @TableField(exist = false)
    private String loginName;

    /**
     * 用户名
     */
    @TableField(exist = false)
    private String username;

    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 角色code
     */
    @TableField(exist = false)
    private String roleCode;

    /**
     * 角色名
     */
    @TableField(exist = false)
    private String roleName;

    /**
     * 测试一下
     */
    @TableField(exist = false)
    private Integer ceShi;

    @TableField(exist = false)
    private LocalDateTime ceShiDate;


}
